﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shopping/backstage.Master" AutoEventWireup="true" CodeBehind="addprt.aspx.cs" Inherits="YiDaShuiHang.shopping.addprt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="js/swfupload/Content/js/swfupload.js" type="text/javascript"></script>
    <script src="js/swfupload/Content/js/imghandlers.js" type="text/javascript"></script>
    <script src="showpingjs/addprt.js" type="text/javascript"></script>
    <script src="showpingjs/upload.js" type="text/javascript"></script>
    <style type="text/css">
        .row {
            padding-top: 10px;
            padding-bottom: 10px;
        }

        #attributes .limitetr {
            width: 25%;
        }

        body {
            padding-bottom: 30px;
        }

        #attributes input {
            height: 40px;
            width: 100%;
        }

        #attributes td {
            padding: 0px 0px;
        }

        #deletetd {
            vertical-align: middle;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            getdata();
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container" style="margin-top: 30px;">
        <div class="row">
            <div class="col-lg-8 col-md-9col-sm-9 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left" style="font-size: 16px;">
                <span class="text-primary"><strong>商品管理</strong></span><span class="text-primary glyphicon glyphicon-menu-right"></span>
                <span class="text-primary glyphicon glyphicon-menu-right"></span><span class="text-primary"><strong>商品信息</strong></span>
            </div>
            <div class="col-lg-2 col-md-2 col-sm-2 text-right">
                <button class=" btn btn-sm btn-info " type="button" value="返回" onclick="window.location.href='Goods_management.aspx' ">返回</button>
            </div>
        </div>
        <div class="row" style="padding-bottom: 15px;">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left" style="padding-bottom: 6px;">
                <span>商品图片</span>
            </div>
            <div id="imgtempdiv" class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                <span id="upload_out"><span id="spanupload"></span></span>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                <form class="form-horizontal">
                    <div class="form-group text-right ">
                        <label for="inputEmail3" class="col-sm-2 control-label text-left" style="font-weight: normal; width: auto; padding-top: 6px; padding-left: 0px;">商品名称</label>
                        <div class="col-lg-4 col-md-4 col-sm-4 text-right" style="padding-left: 0px; padding-right: 0px;">
                            <input type="text" class="form-control" id="pruductname" placeholder="请输入商品名称" />
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left" style="padding-bottom: 6px;">
                <span>商品描述</span>
            </div>
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                <textarea class="form-control" rows="3" id="product_describe" placeholder="请输入商品描述"></textarea>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                <div class="col-lg-6 col-md-6 col-sm-6 text-left">添加商品型号</div>
                <div class="col-lg-6 col-md-6 col-sm-6 text-right">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left" style="padding-bottom: 6px;">
                <table class="table table-bordered table-responsive teble-striped text-center">
                    <thead style="font-weight: bold;">
                        <tr>
                            <td>型号</td>
                            <td>价格</td>
                            <td>库存</td>
                            <td>图片</td>
                        </tr>
                    </thead>
                    <tbody id="attributes">

                        <tr style="text-align: center; vertical-align: middle">
                            <td  contenteditable="true" style="text-align: center; vertical-align: middle">
                                <input id="typet" type="text" style="height:70px" />
                            </td>
                            <td contenteditable="true" style="text-align: center; vertical-align: middle">
                                 <input id="pricet" type="text" style="height:70px"/>
                            </td>
                            <td  contenteditable="true" style="text-align: center; vertical-align: middle">
                                 <input id="remaint" type="text" style="height:70px" /></td>
                            <td class="limitetr" style="text-align: center; vertical-align: middle">
                                <div id="child"></div>
                                <div id="imgtempdiv2">
                                    <span id="upload_out2"><span id="spanupload2"></span></span>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                <div class="col-lg-6 col-md-6 col-sm-6 text-left"></div>
                <div class="col-lg-6 col-md-6 col-sm-6 text-right">
                    <input type="button" class=" btn btn-sm btn-info" onclick="savechild()" value="保存型号" />
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                <div class="col-lg-6 col-md-6 col-sm-6 text-left">已有的商品型号</div>
                <div class="col-lg-6 col-md-6 col-sm-6 text-right">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left" style="padding-bottom: 6px;">
                <table class="table table-bordered table-responsive teble-striped text-center">
                    <thead style="font-weight: bold;">
                        <tr>
                            <td>型号</td>
                            <td>价格</td>
                            <td>库存</td>
                            <td>图片</td>
                            <td>操作</td>
                        </tr>
                    </thead>
                    <tbody id="already"></tbody>
                </table>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                <p>其他信息</p>
                <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                    <span>商品分类</span>
                </div>
                <div id="bodytable" class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-left">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 text-center">
                <input type="button" class="btn btn-sm btn-info" onclick="addproduct()" style="width: 30%;" value="提交" />
            </div>
        </div>
    </div>
</asp:Content>
